@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["主键", 
						"姓名", 
						"性别", 
						"出生年月", 
						"职务", 
						"工作单位",
						"身份证号", 
						"学历",
						"职称", 
						"行业领域"
						];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"name", index:"name", width:100},
						{name:"sex", index:"sex", width:100},
						{name:"birthday", index:"birthday", width:100},
						{name:"job", index:"job", width:100},
						{name:"workplace", index:"workplace", width:100},
						{name:"id_number", index:"id_number", width:100},
						{name:"education", index:"education", width:100},
						{name:"titles", index:"titles", width:100},
						{name:"industry", index:"industry", width:100}
						];

		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
			@		{name:"编号", index:"id", type:"text"},
			@		{name:"姓名", index:"name", type:"text"},
			@		{name:"性别", index:"sex", type:"select_101"},
			@		{name:"学历", index:"education", type:"text"},
			@		{name:"职称", index:"titles", type:"text"},
			@		{name:"行业领域", index:"industry", type:"text"}
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	